{% extends 'base_index.html' %}

{% block title %}
    添加笔记
{% endblock %}

{% block main %}
    <form action="/index/update/{{ note.id }}/" method="post">
        <input type="hidden" name="id" value="{{ note.id }}">
        <div class="form_item">
            <p>标题</p>
            <input type="text" placeholder="请输入标题" name="title" value="{{ note.title }}">
        </div>
        <div class="form_item">
            <p>标题</p>
            <textarea maxlength="30" placeholder="请输入正文" name="content">
                {{ note.content }}
            </textarea>
        </div>
        <input type="submit">
    </form>
{% endblock %}
